package com.tarry.shop.search.domain.dto;

import com.tarry.shop.constant.ESConstant;
import lombok.Data;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.io.Serializable;

@Document(indexName = ESConstant.ES_SHOP_INDEX)
@Data
public class GoodsImageDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @Field(type = FieldType.Integer)
    private Integer id;

    @Field(type = FieldType.Integer)
    private Integer goodsId;

    @Field(type = FieldType.Keyword)
    private String imageUrl;

}
